
public class Exam1 {

	/**
	 * 5题 Exception in thread "main" java.lang.AssertionError at
	 * Exam1.test(Exam1.java:4) at Exam1.main(Exam1.java:8)
	 * 
	 * @throws Error
	 */
	/*
	 * static void test() throws Error{ if(true) throw new AssertionError();
	 * System.out.print("test "); } public static void main(String[] args){
	 * try{test();} catch(Exception ex){System.out.print("exception ");}
	 * System.out.print("end "); }
	 */

	public static void main(String[] args) {
		int i = 4, j = 5, k = 9, m = 5;
		if (i > j || m < k)
			k++;
		else
			k--;
	}

	/**
	 * 65 A 65.0
	 */
	private static void ex1() {
		int num = 65;
		char ch = (char) num;
		double d = ch;
		System.out.println(num + "\t" + ch + "\t" + d);
	}

	/**
	 * 12
	 */
	private static void ex2() {
		int num1 = 11;
		int num2 = 30;
		System.out.println((num1++ & ++num2) > 10 ? num1++ : ++num2);

	}

	private static void ex3() {

	}

}
